﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="UserList.aspx.cs" 
    MasterPageFile="~/Medianamik/MasterPages/MedianamikModule.master"
    Inherits="Medianamik.UI.Web.Membership.Views.UserList" %>
<%@ Import Namespace="Telerik.Web.UI" %>
<%@ Register TagName="UserGrid" Src="UserGrid.ascx" TagPrefix="uc" %>
    
<asp:Content ContentPlaceHolderID="ContextMenu" runat="server">
    <asp:HyperLink ID="AddUserButton" runat="server" CssClass="Action BtAjouter" 
        Text="<%$ Resources: Medianamik.UI.Web.Membership, AddUser %>" />
</asp:Content>
    
<asp:Content ContentPlaceHolderID="CenterContent" runat="server">
    <asp:Literal ID="Breadcrumbs" runat="server" />
    <asp:UpdatePanel ID="FiltersUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div id="BoiteRecherche">
                <fieldset>
                    <p class="ControlTailleVariable">
                        <label>Nom</label>
                        <asp:TextBox id="Name" style="width:400px;" runat="server" CssClass="TxtBox" />
                    </p>
                    <div style="clear:left;"></div>
                    <p>
                        <label>État</label>
                        <asp:DropDownList CssClass="SelectList" Width="100px" 
                            ID="ContentStatesList" runat="server" 
                            DataTextField="Text" DataValueField="Value" />
                    </p>
                    <div style="clear:left;"></div>
                    <p>
                        <label>Groupes</label>
                        <asp:DropDownList CssClass="SelectList" Width="200px" 
                            ID="GroupList" runat="server" 
                            DataTextField="Text" DataValueField="Value" />
                    </p>
                    <div style="clear:left;"></div>
                </fieldset>
                <asp:Button ID="FilterButton" runat="server" CssClass="Btn" Text="Rechercher" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <uc:UserGrid runat="server" ID="UserGrid" AllowPaging="true" />
    <br class="clearer" />        
</asp:Content>

<asp:Content ID="ExternalContent" ContentPlaceHolderID="ExternalContentHolder" runat="server">
    <telerik:RadScriptBlock runat="server" ID="ScriptBlock">

        <script type="text/javascript">
            //<![CDATA[

            <%= Medianamik.UI.Utility.GetDeleteElementScript(RadAjaxManager.GetCurrent(Page).ClientID,
                Pages.DeleteElementWindow, CurrentEditionCulture.Name, 
                false, CurrentEditionCulture.Name == "") %>
                
            <%= Medianamik.UI.Utility.GetTypeSelectedScript(EditPageUrl, 
                false, DefaultParamNames.ParentNodeID, "group", 
                Grid.EditReturnUrl) %>

            //]]>
        </script>

    </telerik:RadScriptBlock>
</asp:Content>
